package com.chance.cc.crawler.prod.command.trigger.domain.news.jiemian.car;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.jiemian.car.JieMianCarArticleRealtimeCrawlerScheduleJob;

import static com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger.metaServiceCommand_17;

public class JieMianCarArticleCrawlerScheduleTrigger {

    public static void main(String[] args) {
        publishJieMianCarArticleRealtimeScheduleTriggerInfo();
    }

    public static void publishJieMianCarArticleRealtimeScheduleTriggerInfo() {
        CrawlerJob crawlerJob = JieMianCarArticleRealtimeCrawlerScheduleJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                JieMianCarArticleRealtimeCrawlerScheduleJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                //"0 0 3 * * ?",
                "0 0 3 * * ?",
                "界面新闻追溯7日文章采集任务，每天凌晨三点采集一次"
        );
    }
}
